import request from '@/utils/request'

// 查询用户消息记录列表
export function listAgentMsgRecord(query) {
  return request({
    url: '/system/AgentMsgRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户消息记录详细
export function getAgentMsgRecord(id) {
  return request({
    url: '/system/AgentMsgRecord/' + id,
    method: 'get'
  })
}

// 新增用户消息记录
export function addAgentMsgRecord(data) {
  return request({
    url: '/system/AgentMsgRecord',
    method: 'post',
    data: data
  })
}

// 修改用户消息记录
export function updateAgentMsgRecord(data) {
  return request({
    url: '/system/AgentMsgRecord',
    method: 'put',
    data: data
  })
}

// 删除用户消息记录
export function delAgentMsgRecord(id) {
  return request({
    url: '/system/AgentMsgRecord/' + id,
    method: 'delete'
  })
}

// 导出用户消息记录
export function exportAgentMsgRecord(query) {
  return request({
    url: '/system/AgentMsgRecord/export',
    method: 'get',
    params: query
  })
}